<template>
	<view class="content">
		<uni-card >
			<text class="text_main">这是一个基础卡片示例，内容较少，此示例展示了一个没有任何属性不带阴影的卡片。</text>
		</uni-card>
		
		<button  type="primary">页面主操作 Normal</button>
		<view class="w-100" style="height: 100px;background-color: aqua;">
			
		</view>
		<!-- <TnSwitch v-model="selectValue" /> -->
		<tn-switch v-model="selectValue" />
		<tn-input v-model="inputValue" placeholder="请输入用户名" />
		<div>Current Count: {{ counter.count }}</div>
	</view>
</template>

<script  setup>
const selectValue = ref(false)
const inputValue = ref('')
const counter = useCounterStore()


onLoad(()=>{
	console.log("onLoad,页面生命周期钩子");
})
onMounted(()=>{
	console.log("onMounted,组件生命周期函数");
})



counter.increment()
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
